package com.lingkang.top.seesister.activity.start;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.lingkang.top.seesister.R;
import com.lingkang.top.seesister.activity.home.HomeActivity;
import com.lingkang.top.seesister.utils.SharedPreferencesUtils;

public class StartAdvert extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.start_advert);

        init();
    }

    private void init() {
        //是否开启广告
        if ((boolean) SharedPreferencesUtils.get().get(this, "openAdvert", false)) {
            startActivity(new Intent(this, HomeActivity.class));
        }
    }
}
